import request from "@/utils/request";

const DEPT_BASE_URL = "/sms/api";

export function getData(data) {
  return request({
    url: `${DEPT_BASE_URL}/list`,
    method: "post",
    data: data,
  });
}
export function delIds(data) {
  return request({
    url: `${DEPT_BASE_URL}/del`,
    method: "post",
    data: data,
  });
}

export function addRow(data, params) {
  return request({
    url: `${DEPT_BASE_URL}/import`,
    method: "post",
    transformRequest: data,
    params: params,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}

export function apiExport(data) {
  return request({
    url: `${DEPT_BASE_URL}/export`,
    method: "post",
    data: data,
  });
}
